package cn.yinyu.queue.module.ecg.controller.admin.checktype.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.yinyu.queue.framework.excel.core.annotations.DictFormat;
import cn.yinyu.queue.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 检查类型 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CheckTypeRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "800")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "检查类型名", example = "嘉木")
    @ExcelProperty("检查类型名")
    private String name;

    @Schema(description = "检查类型值")
    @ExcelProperty("检查类型值")
    private Integer value;

    @Schema(description = "允许准备中人数")
    @ExcelProperty("允许准备中人数")
    private Integer readyNum;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "需要设备领用")
    @ExcelProperty(value = "需要设备领用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer needDevReady;

    @Schema(description = "叫号列")
    @ExcelProperty("叫号列")
    private Integer callingColumn;

    @Schema(description = "根据患者来源决定，是否显示患者条码")
    @ExcelProperty("是否显示患者条码")
    private Integer[] displayBarcode;

    @Schema(description = "是否需要确费")
    @ExcelProperty("是否需要确费")
    private Integer expenseRecognition;

    @Schema(description = "时段预约规定人数")
    @ExcelProperty("时段预约规定人数")
    private Integer timeslotBookNum;

    @Schema(description = "每时段预留人数")
    @ExcelProperty("每时段预留人数")
    private Integer timeslotReservedNum;

    @Schema(description = "亲和的检查类型")
    @ExcelProperty("亲和的检查类型")
    private Integer[] affinityCheckTypes;

    @Schema(description = "预约注意事项")
    @ExcelProperty("预约注意事项")
    private String notes;

    @Schema(description = "预约序号显示前缀")
    @ExcelProperty("预约序号显示前缀")
    private String seqPrefix;
}
